﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Head{
    <link href="~/Content/stylesheets/weekcalendar/jquery.weekcalendar.css" rel="stylesheet" />

}

<div id='calendar'></div>

<div id="event_edit_container">
		<form>
		    <input type="hidden" />
            <span class="field-validation-error" id="error"></span>
			<ul>
				<li>
					<span>Date: </span><span class="date_holder"></span> 
				</li>
				<li>
				    <label for="start">Start Time: </label><select name="start"></select>
				</li>
				<li>
					<label for="end">End Time: </label><select name="end"></select>
				</li>
				<li>
					<label for="title">Title: </label><input type="text" name="title" />
				</li>
				<li>
					<label for="body">Body: </label><textarea name="body"></textarea>
				</li>
                <li>
                    <label for="isPublic">Is Public: </label><input name="isPublic" type="checkbox" />
                </li>
			</ul>
		</form>
</div>


@section scripts {  
    <script src="~/Scripts/jquery.validate.js"></script>
    <script>
        window.calendarReadonly =  @((ViewBag.calendarReadonly != null).ToString().ToLower())
        window.userId = @ViewBag.userId
    </script>
    <script src="~/Scripts/stiline/jquery.weekcalendar.js"></script>
    <script src="~/Scripts/stiline/calendar-config.js"></script>
}